package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.IChargeChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay/payment/channel")
public class ChargeChannelController {
    @Autowired
    private IChargeChannelService chargeChannelService;


    @GetMapping("/list")
    public ResponseResult list() {
        return ResponseResult.okResult(this.chargeChannelService.list());
    }
}